/* ========================================== */
/* Copyright(c) 2016 TimesForus Corporation.  */
/*            All rights reserved.            */
/*          TIMESFORUS CONFIDENTIAL           */
/* ========================================== */
package com.baili.service.user;

import java.util.List;
import java.util.Map;

import com.baili.dto.InsterOrganization;
import com.baili.dto.ProductOrder;
import com.baili.dto.SelectUserInput;

import net.sf.json.JSONObject;

/**
 * TODO
 * <p>
 * This contains the following methods:<br/>
 * <li><code>handleCreateUser</code></li>
 * <li><code>handleUserLogin</code></li>
 * <li><code>idCardNumber</code></li>
 * <li><code>isOrNotAttestation</code></li>
 * <li><code>isRegist</code></li>
 * <li><code>modifyPassword</code></li>
 * <li><code>msmSend</code></li>
 * <li><code>recharge</code></li>
 * <li><code>resetPassword</code></li>
 * <li><code>updatePassword</code></li>
 * <p>
 * 
 * @see com.baili.dto.ObjectOutput
 * @see com.baili.dto.vo.ZtUserInfoOutput
 * 
 * @author TimesForus
 * @version 1.0
 * @since 1.0
 */

public interface UserService {
	
	
	
	public int isRegist(SelectUserInput selectUserInput) throws Exception;

	
	/**
	 * 注册用户
	 * @return
	 */
	public int handleCreateUser(SelectUserInput selectUserInput)throws Exception;
	
	/**
	 * 用户登录
	 * @return
	 */
//	public  Map<String, Object> handleUserLogin(String mobile, int companyId)throws Exception ;
	public  Map<String, Object> handleUserLogin(String mobile, int companyId,String password)throws Exception ;
	
	public void insertOrganization(InsterOrganization insterOrganization);
	
	public List selectOrganization();
	
	public List getRole();
	public List getUserByMobileAndName(SelectUserInput selectUserInput);
	public List getUserByRoleType(SelectUserInput selectUserInput);
	
	public List getProcessNameByUser(int id);
	
	public List getUserByProcessId(ProductOrder productOrder);
	
	public List getRoleTypeByUserId(SelectUserInput selectUserInput);
	
}
